package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.GoodsVisit;
import com.weixing.mall.provider.model.vo.GoodsVisitVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 商品模块-商品浏览足迹 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface GoodsVisitMapper extends BaseMapper<GoodsVisit> {

    List<GoodsVisitVo> selectByMemberId(Long memberId);
    IPage<GoodsVisitVo> selectByMemberIdPage(@Param("pg") Page page, Long memberId);
    int selectMyHistory(Long memberId);

    void deleteByMemberId(Long memberId);
}
